package cn.tworice.cryption.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.security.PrivateKey;
import java.security.PublicKey;

@Data
@Component
@ConfigurationProperties("tworice.cryption")
public class CryptionProperties {

    private Boolean enable = true;

    private String type = "AES";

    private String key = "1234567890hijklm";

    private transient PrivateKey privateKey;

    private transient PublicKey publicKey;

    private String pointcut = "execution(public * cn.tworice.client.web..*.*(..)) || execution(public * cn.tworice.*.controller..*.*(..))";
}
